<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-for 循环对象</title>
    <script src="https://unpkg.com/vue"></script>
</head>
<body>
<div id="app">
    <p v-for="(val, key, i) in user">{{val}} --- {{key}} -- {{i}}</p>
</div>

</body>
<script>
var vm = new Vue({
    el: '#app',
    data: {
        msg: '大家好哈哈哈哈，你们好啊。',
        user:{
            name: 'wuwenyuan',
            gender: '20'
        }
    }

})
</script>
</html>